<?php

// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;

//聊天窗口
Route::get('visitor/:token/:color/:stringtxt','index/Index/kfwindow');
//http://jkb.lishiketang.com/visitor/oG4_vH6_yYzIIq1q4uRsald/1f78f0/asdf
//游客和客服的聊天记录
Route::get('visitorrecord/:token/:uuid/:page','index/Index/getRecord');

//客服列表
Route::get('kflist/:token','index/Kf/lists');
//客服聊天页面
Route::get('kf/:uuid/:token','index/Kf/kf');
//http://jkb.lishiketang.com/kf/3D7A2972-4567-C3C5-5F74-A3733B3103A6/oG4_vH6_yYzIIq1q4uRsald/
//客服和游客获取聊天记录
Route::get('kfrecord/:token/:uuid/:page','index/Kf/getRecord');

//测试
Route::get('test','index/Index/test');

//微信相关
Route::get('regcompany/:openid/:time/:sign/:uid','chat/Index/regcompany');
Route::post('regcompanydo','chat/Index/regcompanydo');//注册公司

//提交留言
Route::post('xpz_submit_message','index/index/submitMessage');
//查看访客留言
Route::get('visitorliuyan/:id/:token','index/Kf/liuyan');
Route::get('visitorliuyanlist/:token','index/Kf/liuyanList');

return [
    //别名配置,别名只能是映射到控制器且访问时必须加上请求的方法
    '__alias__'   => [
    ],
    //变量规则
    '__pattern__' => [
    ],
//        域名绑定到模块
//        '__domain__'  => [
//            'admin' => 'admin',
//            'api'   => 'api',
//        ],
];
